package File;

import java.io.File;
import java.io.IOException;

public class Demo4 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file=new File("./test.txt");
        file.createNewFile();
       // System.out.println(file.delete());//删除文件
file.deleteOnExit();//进程结束后删除
Thread.sleep(10000);
    }
}
